﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GroupManage.aspx.cs" Inherits="iEN.Organization.GroupManage" %>
<%@ Register src="../UserControl/TopMenu.ascx" tagname="TopMenu" tagprefix="uc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

	    TABLE { FONT-SIZE: 8pt; FONT-FAMILY: Arial, Verdana }
	TR { FONT-SIZE: 8pt; FONT-FAMILY: Arial, Verdana }
	    .style1
        {
            width: 596px;
        }
	    </style>
</head>
<body>
    <form id="form1" runat="server">
    <center>
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </div>
    
    <table  style="width: 952px; height: 680px;">  
        <tr>
            <td><uc2:TopMenu ID="TopMenu1" runat="server" />
            </td>                
        </tr>

        <tr>
            <td style="background-image:url('../images/title_back.gif')" align="center" ; width="952px" >
                <asp:Label ID="Label2" runat="server" Text="組 織 群 組 管 理" BackColor="Transparent" Font-Size="XX-Large" ForeColor="Blue"></asp:Label>
            </td>              
        </tr>
        <tr>
            
            <td>
                    <asp:Label ID="lblMsg" runat="server" Font-Names="微軟正黑體" Font-Size="X-Large" 
                        ForeColor="Red" Text="你沒有瀏覽此頁面的權限" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
        <td>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate >
        <asp:Panel runat="server" ID="Panel0">
        <table>
            <tr>
                <td align="left" class="style1" rowspan="2" valign="top">
                    <!-- 組織群組樹狀圖區塊 -->
                    <asp:Panel ID="Panel1" runat="server" BackColor="Transparent" 
                        Font-Names="微軟正黑體" Font-Size="Medium" ForeColor="Black" GroupingText="組織列表" 
                        Height="535px" Width="524px">
                        <asp:TreeView ID="tvMeterGrp" runat="server" Height="489px" 
                            OnSelectedNodeChanged="tvMeterGrp_SelectedNodeChanged" ShowLines="True" 
                            Width="512px">
                            <LevelStyles>
                                <asp:TreeNodeStyle CssClass="nodeLevel1" Font-Underline="False" 
                                    ImageUrl="~/images/level01.gif" />
                                <asp:TreeNodeStyle CssClass="nodeLevel2" Font-Underline="False" 
                                    ImageUrl="~/images/dot02.gif" />
                                <asp:TreeNodeStyle CssClass="nodeLevel3" Font-Underline="False" 
                                    ImageUrl="~/images/dot01.gif" />
                                <asp:TreeNodeStyle CssClass="nodeLevel4" Font-Underline="False" 
                                    ImageUrl="~/images/dot01.gif" />
                                <asp:TreeNodeStyle CssClass="nodeLevelDev" Font-Underline="False" 
                                    ImageUrl="~/images/rootcomp.gif" />
                                <asp:TreeNodeStyle CssClass="nodeLevelLast" Font-Underline="False" 
                                    ImageUrl="~/images/use_yes.gif" />
                            </LevelStyles>
                            <HoverNodeStyle CssClass="node_hover" Font-Size="Large" />
                            <NodeStyle Font-Names="微軟正黑體" ForeColor="Blue" />
                            <SelectedNodeStyle BackColor="#FFFF99" />
                        </asp:TreeView>
                    </asp:Panel>
                </td>
                <td align="center" valign="top">
                    <!-- 組織群組詳細資訊區塊 -->
                    <asp:Panel ID="Panel2" runat="server" BackColor="Transparent" 
                        Font-Names="微軟正黑體" Font-Size="16px" ForeColor="Black" GroupingText="詳細資訊" 
                        HorizontalAlign="Left" Width="280px">
                        <asp:Label ID="Labe2" runat="server" Text="名稱：" Width="50px"></asp:Label>
                        <asp:TextBox ID="tbGrpName" runat="server" Font-Names="微軟正黑體" 
                            Font-Size="Medium" MaxLength="50" Width="200px"></asp:TextBox>
                        <asp:Label ID="Label3" runat="server" Text="類別：" Visible="False" Width="50px"></asp:Label>
                        <asp:TextBox ID="tbGrpCategory" runat="server" Font-Names="微軟正黑體" 
                            Font-Size="Medium" MaxLength="50" Visible="False" Width="200px"></asp:TextBox>
                        <asp:Label ID="Label4" runat="server" Text="描述：" Width="50px"></asp:Label>
                        <asp:TextBox ID="tbGrpDescription" runat="server" Font-Names="微軟正黑體" 
                            Font-Size="Medium" MaxLength="50" Width="200px"></asp:TextBox>
                        <asp:Button ID="btModGrp" runat="server" Font-Names="微軟正黑體" Font-Size="Medium" 
                            Height="25px" onclick="btModGrp_Click" Text="修改" />
                        <asp:Button ID="btDelGrp" runat="server" Font-Names="微軟正黑體" Font-Size="Medium" 
                            Height="25px" onclick="btDelGrp_Click" OnClientClick="return confirm('是否刪除？');" 
                            Text="刪除" />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top">
                    <!-- 新增組織群組詳細資訊區塊 -->
                    <asp:Panel ID="Panel3" runat="server" BackColor="Transparent" 
                        Font-Names="微軟正黑體" Font-Size="16px" ForeColor="Black" GroupingText="新增組織群組" 
                        HorizontalAlign="Left" Width="280px">
                        <asp:Label ID="Label1" runat="server" Text="名稱：" Width="50px"></asp:Label>
                        <asp:TextBox ID="TextBox1" runat="server" Font-Names="微軟正黑體" Font-Size="Medium" 
                            MaxLength="50" Width="200px"></asp:TextBox>
                        <asp:Label ID="Label5" runat="server" Text="類別：" Visible="False" Width="50px"></asp:Label>
                        <asp:DropDownList ID="ddGrpCategory" runat="server" AutoPostBack="True" 
                            Enabled="False" Height="20px" Visible="False" Width="200px">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem>BUILDING</asp:ListItem>
                            <asp:ListItem>FLOOR</asp:ListItem>
                            <asp:ListItem>BLOCK</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="Label6" runat="server" Font-Names="微軟正黑體" Text="描述：" 
                            Width="50px"></asp:Label>
                        <asp:TextBox ID="TextBox3" runat="server" Font-Names="微軟正黑體" Font-Size="Medium" 
                            MaxLength="50" Width="200px"></asp:TextBox>
                        <asp:Button ID="btAddNewGrp" runat="server" Font-Names="微軟正黑體" 
                            Font-Size="Medium" Height="25px" onclick="btAddNewGrp_Click" Text="新增" 
                            ValidationGroup="AddGrp" />
                    </asp:Panel>
                </td>
            </tr>
        </table>
        </asp:Panel>
            </ContentTemplate>
            </asp:UpdatePanel>
        </td>
        </tr>
     
    </table>
    </center>
    </form>
</body>
</html>
